@extends('default.mobile.layouts.indexPublic')
@section('title','企业账号绑定')
{{--首页css--}}
@section('headcss')
    @parent
    <link rel="stylesheet" href="{{asset('/default/css/mobile/index/register_login.css')}}">
    @endsection
    {{--头部标签--}}
    @section('tag','企业账号绑定')

    {{--主体内容--}}
    @section('content')
            <!-- E 头部 -->
    <div class="main">
        {{--普通登录--}}
        <div class="register_login oLogin">
            <form action="{{ empty($formUrl) ? url('mobile/company/stroybinding') : $formUrl }}" onsubmit="return checkCompanyByWeiChat('#companyForm')" method="post" id="companyForm"  name="companyForm" >
                {{csrf_field()}}
                <input type="hidden" name="unionid" id="unionid" value="{{ $unionid }}">
                <input type="hidden" name="openid" id="openid" value="{{ $openid }}">
                <input type="hidden" name="category" id="category" value="{{ $category }}">

                <ul>
                    <li><i class="icon_rl06"></i><input type="text"  name="username" id="username" placeholder="请输入企业用户名" autocomplete="off"></li>
                    <li><i class="icon_rl07"></i><input name="password" id="password" type="password"  placeholder="请输入密码"  autocomplete="off"></li>
                </ul>
                <div class="forget">
                    <span>
                        <input name="remember" type="checkbox" class="agree" id="remember">
                        <label for="remember">记住密码</label>
                    </span>
                    <span class="forgetPass"><a>忘记密码？</a></span>
        </div>
                <div class="sub"><input type="submit" value="立即绑定"></div>
                <div class="noPerson"><p>还不是企业会员? <a href="{{url("mobile/company/regbinding?openid=$openid&unionid=$unionid&category=$category")}}">立即注册并绑定</a></p></div>
            </form>
        </div>
    </div>
    {{--尾部--}}
    @include('default.mobile.layouts.footer')
@endsection

@section('footerjs')
    @parent
    <script type="text/javascript" src="{{asset('/default/js/mobile/company/login.js')}}"></script>
    <script type="text/javascript">
        @if(!empty(session('status')))
            layerMsg("{{ session('status') }}");
        @endif
    </script>
@endsection